//
//  ARENWaterFlowLayout.h
//  FlowerRainGround
//
//  Created by 阿仁欧巴 on 16/4/22.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ARENWaterFlowLayout;

//自定义一个瀑布流的代理
@protocol ARENWaterFlowLayoutDelegate <NSObject>
@required
- (CGFloat)waterFlowLayout:(ARENWaterFlowLayout *)waterFlowLayout heightForItemAtIndex:(NSInteger)index itemWidth:(CGFloat)itemWidth;

@optional
- (CGFloat)columnCountInWaterflowLayout:(ARENWaterFlowLayout *)waterflowLayout;
- (CGFloat)columnMarginInWaterflowLayout:(ARENWaterFlowLayout *)waterflowLayout;
- (CGFloat)rowMarginInWaterflowLayout:(ARENWaterFlowLayout *)waterflowLayout;
- (UIEdgeInsets)edgeInsetsInWaterflowLayout:(ARENWaterFlowLayout *)waterflowLayout;

@end




@interface ARENWaterFlowLayout : UICollectionViewLayout

//代理
@property (nonatomic, weak) id<ARENWaterFlowLayoutDelegate>delegate;



@end
